package es.uma.scgt.servicio.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import es.uma.scgt.dao.TestDao;
import es.uma.scgt.modelo.Test;
import es.uma.scgt.servicio.TestService;
@Service
public class TestServiceImpl implements TestService {
	@Autowired
	private TestDao studentDao;
	
	@Transactional
	public void add(Test student) {
		studentDao.add(student);
	}

	@Transactional
	public void edit(Test student) {
		studentDao.edit(student);
	}

	@Transactional
	public void delete(int studentId) {
		studentDao.delete(studentId);
	}

	@Transactional
	public Test getStudent(int studentId) {
		return studentDao.getStudent(studentId);
	}

	@Transactional
	public List getAllStudent() {
		return studentDao.getAllStudent();
	}

}
